﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MvcMasterPage.Models
{
    /// <summary>
    /// 评论对象
    /// </summary>
    public class Review
    {
        public long ID { get; set; }
        /// <summary>
        /// 被评论对象的类型
        /// </summary>
        public int ObjType { get; set; }
        /// <summary>
        /// 被评论对象的ID
        /// </summary>
        public long ObjID { get; set; }
        [Required]
        public string Title { get; set; }
        [Required]
        public string Content { get; set; }
        [Required]
        public DateTime CreateDate { get; set; }
    }
    /// <summary>
    /// 系统主要对象的类型
    /// </summary>
    public enum ObjectType
    {
        User,
        Product,
        Order
    }
}